package com.example.mystore.service;

import com.example.mystore.model.Address;

import java.util.List;

public interface AddressService {
    List<Address> getAddressesByUserId(Integer userId);

    List<Address> list(Integer id);

    int save(Address address);

    int update(Address address);

    int delete(Integer id);

    Integer setDefault(Integer id);

    Address get(Integer id);
}